< previous page page_727 next page >

Page 727
0727-01.jpg
Figure 32.5
User the Debugging tab of the Properties dialog
box to select whether an ActiveX document
starts in the browser or another application.
If you want to open the ActiveX document manually, choose Wait for Components to Be Created from the Debugging tab. In this case, Visual C`sic only starts the project; you must open the document in Internet Explorer. To open an ActiveX document manually, follow these steps:
1. Run your document by pressing F5 or clicking the VB Start button on the toolbar. (Note that Visual Basic does not display the user interface of your program.)
2. Minimize Visual Basic and start Internet Explorer.
3. From IE's File menu, choose Open. In the resulting Open dialog box, you can enter the name of the file to be opened by IE.
4. Specify the path and name of your ActiveX document. The name is the value of the Name property of the UserDocument object, followed by a .VBD extension. If you are running your document within VB, the file is located in the same folder as Visual Basic. For a typical installation, the path is C:\Program Files\DevStudio\Vb.
5. Click the OK button in the Open dialog box to load your document. The CalcDoc document is shown running in Internet Explorer in Figure 32.6.
note.gif If you click the Browse button in the Open dialog box to find the file, remember to change the Files of Type selection from HTML files to All Files. square.gif

0727-02.jpg
Figure 32.6
Internet Explorer can host an ActiveX document.

 
< previous page page_727 next page >